<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<h2 class="contentTitle">修改采购单明细</h2>


<div class="pageContent">
	
	<form method="post" action="<%=path %>/purchaseorder/modify.do" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">
			<input type="hidden" name="id" value="${purchaseorder.id}"/>
			<input type="hidden" name="status" value="${purchaseorder.status}"/>
			<dl>
				<dt>供应商：</dt>
				<dd>
					<input  type="hidden" name="supplier.id"  value="${purchaseorder.supplier.id}"  class="required"  />
					<input type="text" name="supplier.name"  readonly value="${purchaseorder.supplier.name}"  class="required" />
					<a class="btnLook" href="<c:url value="/supplier/lookuplist.do"/>" lookupGroup="supplier">供应商列表</a>	
				</dd>
			</dl>
			<dl>
				<dt>原材料：</dt>
				<dd>
					<input  type="hidden" name="material.id"  value="${purchaseorder.material.id}"  class="required"  />
					<input type="text" name="material.name"  readonly value="${purchaseorder.material.name}"  class="required" />
					<a class="btnLook" href="<c:url value="/material/lookuplist.do"/>" lookupGroup="material">原材料列表</a>	
				</dd>
			</dl>
			<%-- 
			<dl>
				<dt>材料名称：</dt>
				<dd>
					<input type="text" name="materialName" class="required" value="${purchaseorder.materialName}"/>
				</dd>
			</dl>
			<dl>
				<dt>规格厚度：</dt>
				<dd>
					<input type="text" name="thickness" class="number" value="${purchaseorder.thickness}"/>
				</dd>
			</dl>
			--%>
			<dl>
				<dt>数量：</dt>
				<dd>
					<input type="text" name="amount" class="digits" value="${purchaseorder.amount}"/>
				</dd>
			</dl>
			<dl>
				<dt>单位：</dt>
				<dd>
					<input type="text" name="unit" class="required" value="${purchaseorder.unit}"/>
				</dd>
			</dl>
			<dl>
				<dt>单价：</dt>
				<dd>
					<input type="text" name="unitPrice" class="number" value="${purchaseorder.unitPrice}"/>
				</dd>
			</dl>
			<dl>
				<dt>金额：</dt>
				<dd>
					<input type="text" name="totalPrice" class="number" value="${purchaseorder.totalPrice}"/>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>备注：</dt>
				<dd>
					<textarea name="remark" cols="60" rows="2">${purchaseorder.remark}</textarea>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>